﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AgriMarketWebProj.AgriMarketService.Auctioneer>" %>
<%@ Import Namespace="AgriMarketWebProj.AgriMarketService" %>
<%@ Import Namespace="AgriMarketWebProj.Models" %>
<%@ Import Namespace="System.Web.Script.Serialization" %>
<%@ Import Namespace="System.Web.Helpers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    AgriMarket|Quản trị danh sách đấu
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <h2>Danh sách đấu giá</h2>
    <%=Html.ValidationSummary(false) %>

    <%if (Model != null)
      { %>
    <% using (Html.BeginForm())
       { %>
        <%: Html.ValidationSummary(true)%>
        <fieldset>
            <legend>Auctioneer</legend>
            <%: Html.HiddenFor(model => model.AuctioneerId)%>
    
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Price)%>
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.Price)%>
                <%: Html.ValidationMessageFor(model => model.Price)%>
            </div>
    
            <div class="editor-label">
                <%: Html.LabelFor(model => model.PostedDate)%>
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.PostedDate)%>
                <%: Html.ValidationMessageFor(model => model.PostedDate)%>
            </div>
    
            <div class="editor-label">
                <%: Html.LabelFor(model => model.AuctionId)%>
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.AuctionId)%>
                <%: Html.ValidationMessageFor(model => model.AuctionId)%>
            </div>
    
            <div class="editor-label">
                <%: Html.LabelFor(model => model.AuthorId)%>
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.AuthorId)%>
                <%: Html.ValidationMessageFor(model => model.AuthorId)%>
            </div>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>
    <% }
      }%>
    
    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
        <script src="<%: Url.Content("~/Scripts/jquery-1.5.1.min.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>
</asp:Content>
